<?php
/**
 * Created by PhpStorm.
 * User: yellow
 * Date: 2019/5/15
 * Time: 16:27
 */

namespace app\common\event;


class Users
{

    public function beforeInsert($user)
    {
        $user->salt = getSalt();
    }

}